<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>HH_DISPLAY_TOPIC command</TITLE>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<BODY>

<h1>HH_DISPLAY_TOPIC command</h1>

<P>Opens a help topic in a specified help window. </P>

<P>If a window type is not specified, a default window type is used. If the window type or default window type is open, the help topic replaces the current topic in the window.</P>

<br>
<table border=1 cellpadding=3 cellspacing=0 width=100%>
<TR VALIGN="top">
<TH><I>pszFile</I></TH>
<TH><I>dwData</I></TH>
</TR>

<TR VALIGN="top">
<TD>
Specifies a compiled help (.chm) file, or a specific topic within a compiled help file. 

<p>To specify a defined window type, insert a greater-than (&gt;) character followed by the name of the window type.</P>
</TD>
<TD>
Specifies NULL or a pointer to a topic within a compiled help file. 
</TD>
</TR>
</TABLE><BR>

<h2>Example</h2>
<p><pre><code>
HWND hwnd =
<br>   HtmlHelp(
<br>             GetDesktopWindow(),
<br>             "c:\\help.chm::/intro.htm>mainwin",
<br>             HH_DISPLAY_TOPIC,
<br>             NULL) ;
</pre></code></p>

<H2>Return value</H2>
<p>The handle (hwnd) of the help window.</p>

<h2>Comments</h2>
<ul>
<li>For backward compatibility with WinHelp(), <b>HH_DISPLAY_TOPIC</b> and <b>HH_HELP_FINDER</b> provide the same functionality.</li>

<li>A default help window contains only the Topic pane and is not a three-pane Help Viewer.</li>
</ul>


<h2>See also</h2>
<p><a href="cmd_hh_help_context.htm">HH_HELP_CONTEXT</a></p>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ov_about_htmlhelp_commands.htm"><img src="home.gif" width=20 height=18 alt="link to overview topic" border="0"></a>
</td>
<td><a href="ov_about_htmlhelp_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>


<br>
<!--start keywords--->

<!--end keywords--->

</BODY>
</HTML>
